package br.com.minhascontas.activity.relatorio;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import br.com.example.minhascontas.R;

public class MenuRelatorio extends Activity{
	
	private Button btnRelatorioMensal;
	private Button btnRelatorioPorPeriodo;
	private Button btnRelatorioPorGrupo;
	private Button btnRelatorioPorItem;
	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu_relatorio);
		
		 btnRelatorioMensal = (Button) findViewById(R.id.btnRelatorioMensal);
		 btnRelatorioPorPeriodo = (Button) findViewById(R.id.btnRelatorioPorPeriodo);
		 btnRelatorioPorGrupo = (Button) findViewById(R.id.btnRelatorioPorGrupo);
		 btnRelatorioPorItem = (Button) findViewById(R.id.btnRelatorioPorItem);
		 
		 btnRelatorioMensal.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MenuRelatorio.this, RelatorioMensal.class);
				startActivity(intent);
			}
		});
		 
		 btnRelatorioPorPeriodo.setOnClickListener( new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MenuRelatorio.this, RelatorioPorPeriodo.class);
				startActivity(intent);
			}
		});
		 
		 btnRelatorioPorGrupo.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MenuRelatorio.this, RelatorioPorGrupo.class);
				startActivity(intent);
			}
		});
		 
		 btnRelatorioPorItem.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MenuRelatorio.this, RelatorioPorItem.class);
				startActivity(intent);
			}
		});
	}
}
